<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Rotation extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'rotation';

    /**
     * 轮播图查询
     */
    public static function rotationList()
    {
       return self::where('is_show','=','1')
                  ->orderBy('sort', 'DESC')
                  ->get();
    }
}
